export class NavigateManage {
    static current = new NavigateManage();
    private router
    registerRouter(router) {
        this.router = router;
    }
    navigate(path) {
        if (!this.router) {
            throw new Error("router 没有初始化")
        }
        this.router.navigate([path]);
    }
}